<ui:composition
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:c="http://java.sun.com/jstl/core">

  <ui:include src="/incl/dnd/dnd-ui.xhtml" />

  <h:outputScript target="#{pageJsTarget}">
    jQuery(document).ready(function(){
      // init Browser DnD import
      jQuery(".dropzone").nxDropZone({
        url : "#{contextPath}/api/v1/",
        uploadRateRefreshTime : 500,
        numConcurrentUploads : 3,
        dropContext : ctx,
        uploadTimeout : #{configurationService.getProperty("org.nuxeo.dnd.upload.timeout","30000")},
        execTimeout : #{configurationService.getProperty("org.nuxeo.dnd.exec.timeout","30000")},
        extendedModeTimeout : #{configurationService.getProperty("org.nuxeo.dnd.extendedmode.timeout","2000")}
      });
    });
  </h:outputScript>

</ui:composition>
